package top.forgirl.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.forgirl.domain.Demand;
import top.forgirl.domain.dto.DemandDo;

import java.util.List;

@Repository
public interface DemandMapper {
    List<Demand> list(@Param("demandDo") DemandDo demandDo,@Param("offset")int offset,@Param("count") int count);

    List<Demand> listS(@Param("demandDo") DemandDo demandDo,@Param("offset")int offset,@Param("count") int count);

    Integer countPage(int numOfPage,String cId);

    Demand selectOne(@Param("cId") String cId,@Param("dId") String dId);

    int delete(@Param("cId") String cId,@Param("dId") String dId);

    int insert(Demand demand);

    int update(Demand demand);
}
